/*
 * @Description:
 * @Version: 1.0
 * @Autor: chen_yt
 * @Date: 2022-06-13 16:58:28
 * @LastEditors: chen_yt
 * @LastEditTime: 2022-07-26 16:08:02
 */
import request from '@/utils/request'

export const defaultMainTenantConfig = {
    tenantId: 100000,
    clientId: 'fawkes'
}

export function getUserClients () {
    return request({
        url: '/sys-system/user/clients',
        method: 'get'
    })
}

export function getPortalsInOtherTenant (tenantConfig) {
    return request({
        url: '/sys-user/user/portals',
        method: 'GET',
        tenantConfig
    })
}
//获取租户列表
export function getTenantList () {
    return request({
        url: '/sys-system/saas/tenant/page',
        method: 'get',
        params: {
            pageNo: 1,
            pageSize: 999
        }
    })
}
